package com.ssy.lingxi.purchase.repository.online;

import com.ssy.lingxi.purchase.entity.onlinebidding.OnLineBidding;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
*竞价报名
* @date 2020/7/8
*/
@Repository
public interface OnLineBiddingRepository extends JpaRepository<OnLineBidding, Long>, QuerydslPredicateExecutor<OnLineBidding> {

    OnLineBidding findFirstByBiddingId(Long bidding);

    boolean existsAllByBiddingId(Long  biddingId);
}
